package descriptors;

public class ArrayDescr extends AbstractDescr {

	
	int numberElems;
	AbstractDescr baseType;
	
	
	public ArrayDescr(int fn, int fs, AbstractDescr fb){
		this.numberElems=fn;
		this.size=fs;
		this.baseType=fb;
	}

	public int numberElems(){
		return numberElems;
	}
	public AbstractDescr baseType(){
		return baseType;
	}
	@Override
	public void print() {
		trace("ArrayDescr: numberelems: " + numberElems +
		      " size: " + size);
		baseType.print();
		unindent();
		
	}
	
	
	
}
